<?php
require_once "session.php";
$weixin_id=$_SESSION["user"];
?>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>提现记录</title>
    <link href="../static/css/bootstrap.min.css" rel="stylesheet">
    <script src="../static/js/jquery.min.js" type="text/javascript"></script>
    <script src="../static/js/bootstrap.min.js" type="text/javascript"></script>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="style.css">
    <style>
        .table{
            text-align: center;
        }
        #table_head{
            font-size: 12px;
            font-weight: bold;
        }
    </style>
</head>
<body>
<div id="head" style="position: relative;">
    <a href="javascript:history.go(-1)" class="back_btn">
        <span class="glyphicon glyphicon-chevron-left " style="line-height: 45px"></span>
    </a>
    <span style="font-size: 25px;">提现记录</span>
</div>
<div style="height:450px;overflow-y:auto">
    <table class="table table-bordered">
        <tr id="table_head">
            <td>金额</td>
            <td>时间</td>
            <td>状态</td>
        </tr>
        <?php
        $user=$core->GetUserByWxId($weixin_id);
        $withdraw=$core->GetAllUserWithdrawByUserId($user["id"]);
        foreach ($withdraw as $v){
        ?>
        <tr>
            <td><?php echo $v["money"];?></td>
            <td><?php echo $v["create_time"];?></td>
            <td><?php echo $v["status"];?></td>

        </tr>
        <?php } ?>
    </table>
</div>
</body>
</html>